package net.yxsoft.model.formdesigner.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;
import net.yxsoft.model.infrastructure.base.BaseModel;

/**
 * @author zhaohaibo
 */
public abstract class BaseForm<M extends BaseForm<M>> extends BaseModel<M> implements IBean {

  public void setId(String value) {
    set("id", value);
  }

  public String getId() {
    return get("id");
  }

  public String getParentid(){
    return get("parentid");
  }

  public void setParentid(String value) {
    set("parentid", value);
  }

  public void setName(String value) {
    set("name", value);
  }

  public String getName() {
    return getStr("name");
  }

  public void setCode(String value) {
    set("code", value);
  }

  public String getCode() {
    return getStr("code");
  }

  public void setType(Integer value) {
    set("type", value);
  }

  public Integer getType() {
    return getInt("type");
  }

  public void setCategory(String value) {
    set("category", value);
  }

  public String getCategory() {
    return getStr("category");
  }

  public void setNote(String value) {
    set("note", value);
  }

  public String getNote() {
    return getStr("note");
  }

  public void setIcon(String value) {
    set("icon", value);
  }

  public String getIcon() {
    return getStr("icon");
  }

  public void setState(Integer value) {
    set("state", value);
  }

  public Integer getState() {
    return getInt("state");
  }

  public void setSort(java.math.BigDecimal value) {
    set("sort", value);
  }

  public java.math.BigDecimal getSort() {
    return get("sort");
  }

  public void setCreated(java.util.Date value) {
    set("created", value);
  }

  public java.util.Date getCreated() {
    return get("created");
  }


  public void setAttrib01(String value) {
    set("attrib_01", value);
  }

  public String getAttrib01() {
    return getStr("attrib_01");
  }

  public void setColSize(Integer colSize) {
    set("colsize", colSize);
  }

  public Integer getColSize() {
    return getInt("colsize");
  }


  public void setBlockChainMode(String blockchainmode) {
    set("blockchainmode", blockchainmode);
  }

  public String getBlockChainMode() {
    return getStr("blockchainmode");
  }



  public void setIsSource(String source) {
    set("is_source", source);
  }

  public String getIsSource() {
    return getStr("is_source");
  }

  public void setSourceName(String sourceName) {
    set("source_name", sourceName);
  }

  public String getSourceName() {
    return getStr("source_name");
  }

  public void setIsFull(String isFull) {
    set("is_full", isFull);
  }

  public String getIsFull() {
    return getStr("is_full");
  }


  public void setModel(String Model) {
    set("model", Model);
  }

  public String getModel() {
    return getStr("model");
  }


}
